<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

<tiles:insertTemplate template="/layout/master-ajax.jsp">
    <tiles:putAttribute name="content">
		<table class="forList">
			<thead>
				<tr>
					<th>Nome do Grupo</th>
					<th></th>
				</tr>
			</thead>
			<c:forEach items="${groupList}" var="group">
				<tr>
					<td>${group.description}</td>
					<td>
						<a class="link-button edit" href='<c:url value="/group/maintain?group.id=${group.id}" />'><span class="ui-icon ui-icon-pencil"></span></a>
						<a class="link-button delete" titleText="Deletar o grupo ${group.description}?" href="<c:url value='/group/delete?group.id=${group.id}' />"><span class="ui-icon ui-icon-trash"></span></a>
						<a class="link-button view" href="<c:url value='/group/view?group.id=${group.id}' />"><span class="ui-icon ui-icon-search"></span></a>
						
					</td>
				</tr>
			</c:forEach>
		</table>
    </tiles:putAttribute>  
</tiles:insertTemplate>
